/*
 * taskICU.h
 *
 *  Created on: 2025.6.17
 *      Author: TracyHenry
 */

#ifndef TASKSICU_H_
#define TASKSICU_H_
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "stm32f1xx_hal.h"
#include "cmsis_os.h"
#include "gpio.h"


typedef struct ERR_STATUS{
  uint8_t err_water_mark; 
  uint8_t err_locked_rotor; 
  uint8_t err_idle_rotor; 
} ERR_STATUS;


extern ERR_STATUS now_err_status;
void taskICUInit(void);
void inputCaptureTask(void const * argument);
void motorControlByWarn(void);

#endif /* TASKSICU_H_ */
